import { Module } from '@nestjs/common';
import { PassportModule } from '@nestjs/passport';
import { JwtModule } from '@nestjs/jwt';

import { AuthService } from './admin.service';
import { AdminStrategy } from './admin.strategy';
import config from 'src/config';

@Module({
	imports: [
		PassportModule,
		JwtModule.register({
			secret: config.admin.secret,
			signOptions: { expiresIn: config.admin.expiresIn },
		}),
	],
  	providers: [AuthService,AdminStrategy],
	exports: [AuthService],
})
export class AuthModule {}
